package com.waiterxiaoyy.backandroiddesign.controller;

import com.waiterxiaoyy.backandroiddesign.Service.MemberService;
import com.waiterxiaoyy.backandroiddesign.utils.vo.DataVo;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author :WaiterXiaoYY
 * @description: TODO
 * @data :2020/12/31 10:39
 */

@RestController
@RequestMapping("/api")
@Api(description = "党员控制")
public class MemberController {
    @Autowired
    private MemberService memberService;

    @GetMapping
    public DataVo saveMember() {
        return memberService.saveMember();
    }

    @GetMapping("getclass")
    public DataVo getClassName() {
        return memberService.getClassName();
    }
}
